<template>
	<div v-if="user" v-my-directive data-title="用户中心" class="usermain">
		<!-- 左边 -->
		<userleft></userleft>
		<div class="CatalogLayout">
			<!-- 引入文件的方式 -->
			<div class="Genericpadding bold">我的提问</div>
			<div class="Genericpadding helf CatalogLayout">
				<QAList v-if="user" :userid="user.id"></QAList>
			</div>
		</div>
	</div>
</template>
<script>
	import userleft from './../components/userleft'
	import QAList from './../components/QAList'
	import { mapState } from 'vuex'
	export default {
		name: 'name',
		computed: {
			...mapState(['logon', 'user']),
		},
		components: {
			// 组件
			userleft,
			QAList,
		},
	}
</script>
